package com.knowledgegraph.zhongyao.service.impl;

import java.util.List;

import com.knowledgegraph.zhongyao.domain.ciyun;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.knowledgegraph.zhongyao.mapper.BingMapper;
import com.knowledgegraph.zhongyao.domain.Bing;
import com.knowledgegraph.zhongyao.service.IBingService;

/**
 * 病例类型维护Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-25
 */
@Service
public class BingServiceImpl implements IBingService 
{
    @Autowired
    private BingMapper bingMapper;

    /**
     * 查询病例类型维护
     * 
     * @param bingId 病例类型维护主键
     * @return 病例类型维护
     */
    @Override
    public Bing selectBingByBingId(Long bingId)
    {
        return bingMapper.selectBingByBingId(bingId);
    }

    /**
     * 查询病例类型维护列表
     * 
     * @param bing 病例类型维护
     * @return 病例类型维护
     */
    @Override
    public List<Bing> selectBingList(Bing bing)
    {
        return bingMapper.selectBingList(bing);
    }

    /**
     * 新增病例类型维护
     * 
     * @param bing 病例类型维护
     * @return 结果
     */
    @Override
    public int insertBing(Bing bing)
    {
        return bingMapper.insertBing(bing);
    }

    /**
     * 修改病例类型维护
     * 
     * @param bing 病例类型维护
     * @return 结果
     */
    @Override
    public int updateBing(Bing bing)
    {
        return bingMapper.updateBing(bing);
    }

    /**
     * 批量删除病例类型维护
     * 
     * @param bingIds 需要删除的病例类型维护主键
     * @return 结果
     */
    @Override
    public int deleteBingByBingIds(Long[] bingIds)
    {
        return bingMapper.deleteBingByBingIds(bingIds);
    }

    /**
     * 删除病例类型维护信息
     * 
     * @param bingId 病例类型维护主键
     * @return 结果
     */
    @Override
    public int deleteBingByBingId(Long bingId)
    {
        return bingMapper.deleteBingByBingId(bingId);
    }

    @Override
    public List<ciyun> shanList() {

        return   bingMapper.shanList();
    }

    @Override
    public List<ciyun> zhuList() {
        return bingMapper.zhuList();
    }
}
